<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@taglib prefix="p" uri="http://primefaces.prime.com.tr/ui"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<%--
    This file is an entry point for JavaServer Faces application.
--%>
<f:view>
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
            <title>ORGANIZER</title>
            <p:resources />
        </head>
        <body>
            <p:growl id="aviso" />
            <p:layoutUnit position="center">  
            <p:panel header="Login" style="width: 320px"  >           
                <h:form>
                    <h:panelGrid columns="2">
                       <h:outputLabel value="Login"/>
                       <h:inputText value="#{loginManegedBean.usuario.login}" id="login"/>
                       <h:outputLabel value="Senha"/>
                       <h:inputSecret value="#{loginManegedBean.usuario.senha}" id="senha"/>                   
                    </h:panelGrid>              
                    <p:commandButton action="#{loginManegedBean.logar}" value="Entrar" ajax="false"/>
                </h:form>
                <h:form>
                    <p:commandLink value="Cadastre-se" action="cadastrarUsuario" ajax="false"/>
                </h:form>
            </p:panel>
            </p:layoutUnit>
                
        </body>
    </html>
</f:view>
